TCPSocket.Read Method

Reads the amount of bytes specified from the internal receive buffer. Returns the data as a String.

Syntax

TCPSocket.Read Bytes, [Encoding]


Parameters

Bytes

Integer

Encoding (Optional)

TextEncoding


The optional Encoding parameter enables you to specify the text encoding of the data to be returned. Use the Encodings object to specify a text encoding.